import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import './plugins/element.js'

Vue.config.productionTip = false

Vue.prototype.$ajax = axios

//动态获取请求地址--设置全局
axios.defaults.baseURL = 'http://www.yuanxiaoxiang.com:8001'
//axios.defaults.baseURL = 'http://localhost:8001'

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
